﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Admin.Master" AutoEventWireup="true" CodeBehind="Ad_MemberLog.aspx.cs" Inherits="MyAdmin.Admin.Ad_MemberLog1" %>

<%@ Register Src="../Admin_Control/Admin_Paging.ascx" TagName="Admin_Paging" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph_Header" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_Tools" runat="server">
    <asp:LinkButton runat="server" ID="lbtn_Delete" OnClientClick="return BeforeDeteleData();"
        ToolTip="Xóa tất cả mục đã chọn" OnClick="lbtn_Delete_Click">
        <span class="Delete"></span>
            Xóa
    </asp:LinkButton>   
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cph_ToolBox" runat="server">

</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cph_Search" runat="server">
 <label>
        Từ khóa:</label>
    <input type="text" runat="server" id="tbx_Search" />
    <select runat="server" id="sel_SearchType">
        <option value="0">- - Tìm theo tất cả - - </option>
        <option value="1">Theo mã thành viên</option>
        <option value="2">Theo tên thành viên</option>
        <option value="3">Theo TableName</option>
        <option value="4">Theo hành động</option>
        <option value="5">Theo IDValue</option>
    </select>   
    <input type="radio" runat="server" id="rad_Success" name="Active" /><label>Thành công</label>
    <input type="radio" runat="server" id="rad_UnSuccess" name="Active" /><label>Chưa thành công</label>
    <input type="radio" runat="server" id="rad_Both" name="Active" checked="true" /><label>Cả
        hai</label>
    <select runat="server" id="sel_Sort">
        <option value="">- - Sắp Xếp Theo - - </option>
        <option value="UpdateDate">Ngày cập nhật</option>
        <option value="MemberID">Mã thành viên</option>
        <option value="MemberName">Tên thành viên</option>
        <option value="TableName">Tên bảng</option>
        <option value="ActionName">Hành đông</option>
        <option value="IsSuccess">Thành công</option>
        <option value="RequestID">IP Request</option>
    </select>
    <asp:Button runat="server" ID="btn_Search" Text="Tìm kiếm" OnClick="btn_Search_Click" />
    <asp:Button runat="server" ID="btn_CancelSearch" Text="Hủy tìm" OnClick="btn_CancelSearch_Click"
        Visible="false" />
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="cph_Content" runat="server">
 <table class="Data" border="0" cellpadding="0" cellspacing="0">
        <tbody>
            <tr class="Table_Header">
                <th class="Table_TL"></th>
                <th width="10">STT </th>
                <th>Mã</th>
                <th>Mã thành viên</th>
                <th>Tên thành viên</th>
                <th>Tên bảng</th>
                <th>ID value</th>
                <th>Name value</th>
                <th>Action</th>                
                <th>Success</th>
                <th>RequestID </th>
                <th>Ngày tạo </th>
                <th align="center" width="10">
                    <input type="checkbox" onclick="SelectCheckBox_All(this);" />
                </th>
                <th class="Table_TR"></th>
            </tr>
            <asp:Repeater runat="server" ID="rpt_Data">
                <ItemTemplate>
                    <tr class="Table_Row_1">
                        <td class="Table_ML_1">
                        </td>
                        <td>
                            <%#(Container.ItemIndex + PageIndex).ToString()%>
                        </td>
                        <td>
                            <%#Eval("MemberLogID") %>
                        </td>
                        <td>
                            <%#Eval("MemberID") %>
                        </td>
                        <td>
                             <%#Eval("MemberName") %>
                        </td>
                        <td>
                             <%#Eval("TableName") %>
                        </td>
                        <td>
                            <%#Eval("IDValue") %>
                        </td>
                        <td>
                            <%#Eval("NameValue") %>
                        </td>
                        <td>
                            <%#Eval("ActionName") %>
                        </td>                       
                        <td>
                            <img src="<%#(((bool)Eval("IsSuccess"))?"../Images/Buttons/Active_Grid.png":"../Images/Buttons/UnActive_Grid.png") %>" />
                        </td>
                        <td>
                            <%#Eval("RequestID") %>
                        </td>
                       <td>
                            <%#Eval("CreateDate") %>
                        </td>
                        <td align="center" width="10">
                            <%#"<input type='checkbox' id='CheckAll_" + Container.ItemIndex.ToString() + "' value='" + Eval("MemberLogID").ToString() + "' />"%>
                        </td>
                        <td class="Table_MR_1">
                        </td>
                    </tr>
                </ItemTemplate>
                <AlternatingItemTemplate>
                    <tr class="Table_Row_2">
                        <td class="Table_ML_2">
                        </td>
                         <td>
                            <%#(Container.ItemIndex + PageIndex).ToString()%>
                        </td>
                        <td>
                            <%#Eval("MemberLogID") %>
                        </td>
                        <td>
                            <%#Eval("MemberID") %>
                        </td>
                        <td>
                             <%#Eval("MemberName") %>
                        </td>
                        <td>
                             <%#Eval("TableName") %>
                        </td>
                        <td>
                            <%#Eval("IDValue") %>
                        </td>
                        <td>
                            <%#Eval("NameValue") %>
                        </td>
                        <td>
                            <%#Eval("ActionName") %>
                        </td>                       
                        <td>
                            <img src="<%#(((bool)Eval("IsSuccess"))?"../Images/Buttons/Active_Grid.png":"../Images/Buttons/UnActive_Grid.png") %>" />
                        </td>
                        <td>
                            <%#Eval("RequestID") %>
                        </td>
                       <td>
                            <%#Eval("CreateDate") %>
                        </td>
                        <td align="center" width="10">
                            <%#"<input type='checkbox' id='CheckAll_" + Container.ItemIndex.ToString() + "' value='" + Eval("MemberLogID").ToString() + "' />"%>
                        </td>
                        <td class="Table_MR_2">
                        </td>
                    </tr>
                </AlternatingItemTemplate>
            </asp:Repeater>
        </tbody>
    </table>
    <div class="Table_Footer">
        <div class="Table_BL">
            <uc1:Admin_Paging ID="Admin_Paging1" runat="server" />
        </div>
        <div class="Table_BR">
        </div>
    </div>
    <div class="Div_Hidden">
        <input type="hidden" runat="server" id="hid_ListCheckAll" />
    </div>
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="cph_Javascript" runat="server">
<script language="javascript" type="text/javascript">
        hid_ListCheckAll = document.getElementById("<%=hid_ListCheckAll.ClientID %>");

        ReCheck_CheckboxOnGrid();
      
    </script>
</asp:Content>
